<?php


namespace App\Models;

/**
 * 用户角色-模型
 * @author aaron
 * @since 2020/11/11
 * Class UserRoleModel
 * @package App\Models
 */
class UserRoleModel extends BaseModel
{
    // 设置数据表
    protected $table = 'user_role';
    protected $primaryKey = 'id';

    public function role()
    {
        return $this->belongsTo(RoleModel::class);
    }
}
